<{include file="public/header.html"}>
<style>
    .q-content p{
        line-height: 25px;
        max-width: 100%;
        margin-bottom: 10px;
    }
    .q-content p img{
        max-width: 100%;
    }
</style>
	<div class="wenda-detail w1180-con">
		<div class="ask-left fl">
			<!-- 详情面包屑导航-->
			<div class="detail-nav mt20">
				<a href="<{eval url('carefree/exposure')}>" class="tan66-wenda">曝光台</a>	&gt;<em class="ask-title"><{$wenda['title']}></em>
			</div>
			<!--&lt;!&ndash;问答搜索&ndash;&gt;-->
			<!--<div class="wd-search mt20">-->
				<!--<div class="search-box fl">-->
					<!--<input type="text" name="" id="seach_exposure_value" value="" placeholder="提问前先搜索，看看小伙伴们是否已经问过你的问题" />-->
				<!--</div>-->
				<!--<button class="fr seach_exposure_btn">-->
					<!--<b class="icon-index icon-search-wd"></b>-->
				<!--</button>-->
				<!--<div class="clear"></div>-->
			<!--</div>-->
			<!--问-->
                        <script>var uuid=<{$wenda['wenda_uid']}>;$(function(){showWdRead();})</script>
			<div class="question">
                            <input type="hidden" id="answer_item_obj" data-wid="<{$wenda['wenda_id']}>" data-aid="<{$top_answer_id}>" />
				<div class="q-title"><b class="icon-index" style="background-image: url(<{$style_dir}>/img/community/icon-exposure.png);background-size: 32px 32px;background-repeat: no-repeat;"></b><{$wenda['title']}></div>
				<div class="q-content"><{$wenda['content']}></div>
				<div class="q-info">
					<div class="q-tags fl">
                                            <{foreach from=$wenda['tags'] item=val}>
                                            <a href="<{$val['turl']}>" target="_blank" class="q-tag"><{$val['tname']}></a>
                                            <{/foreach}>
					</div>
					<div class="ask-info fr">
						<a href="<{$wenda['space_url']}>" target="_blank" class="header fl"><img src="<{$wenda['q_user_headimg']}>" /></a>
						<a href="<{$wenda['space_url']}>" target="_blank" class="name ml10"><{$wenda['q_user_nickname']}></a>
						<span class="q-time"><{$wenda['create_time']}></span>
					</div>
					<div class="clear"></div>
				</div>
				<div class="q-operate">
					<div class="share-report fl mt10">
						<div class="q-share fl">
                                                    <a href="javascript:;" class="wen-share share pr10"><b class="icon-com icon-ask-share"></b>分享</a>
                                                    <div class="share-pop share">
                                                        <a class="sina icon-tab icon-share-sina" title="分享到新浪微博" data-key="wb" data-title="#弹溜溜无忧专栏--《<{$wenda['title']}>》--邀您一起评论#" data-content="<{$wenda['likes']}>人【喜欢】" data-ref="<{$wenda['share_url']}>"></a>
                                                        <a class="qzone icon-tab icon-share-qzone" title="分享到QQ空间" data-key="qq" data-title="#弹溜溜无忧专栏--《<{$wenda['title']}>》--邀您一起评论#" data-content="<{$wenda['likes']}>人【喜欢】" data-ref="<{$wenda['share_url']}>"></a>
                                                        <a class="sweixin icon-tab icon-share-wechat" title="分享到微信" data-key="wx" data-wx-qrcode="/trcode.html?text=<{$wenda['share_url']|urlencode}>&size=150&level=H"></a>
                                                    </div>
						</div>
                                            <a href="javascript:void(0);" class="q-invite _report" data-rel="<{0|host_url}><{$wenda['detail_url']}>">举报</a>
					</div>
					<div class="fr">
						<span class="browse mr10"><em class="show-read-num"><{$wenda['readnum']}></em>浏览</span>
						<span class="browse mr10"><em class="show-care-num"><{$wenda['focusnum']}></em>关注</span>
                                                <{if !$wenda['is_self']}>
                                                <a href="javascript:void(0);" class="_T_care_exposure_btn <{if $wenda['is_care']}>btn-cared<{else}>btn-care<{/if}>" data-value="<{$wenda['is_care']}>"><{if $wenda['is_care']}>已关注<{else}>关注<{/if}></a>
                                                <{if !$top_answer}>
						<a href="javascript:void(0);" class="btn-answer btn-answer-goto ml15">评论</a>
                                                <{/if}>
                                                <{/if}>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="reply-wrap">
				<!--653个回答-->
				<div class="reply-hd"><span><{$wenda['answernum']}></span>评论</div>
				<!--详情-->
				<div class="pagelet">
                                    <{if $top_answer}>
                                    <ul class="reply-list answer-myself-box">
                                        <li id="answer-<{$top_answer['answer_id']}>" data-aid="<{$top_answer['answer_id']}>" data-auid="<{$top_answer['user_id']}>">
                                            <div class="who-reply">
                                                <a href="javascript:void(0);"><img src="<{$top_answer['head_img']}>" /></a>
                                                <a class="btn-praise <{if $top_answer['is_like']}>dianzan<{else}>bp-default<{/if}>" data-type="1" onselectstart="return false" data-value="<{$top_answer['is_like']}>"><b class="icon-com <{if $top_answer['is_like']}>dianzan<{else}>icon-detail-praise<{/if}>"></b><span class="<{if $top_answer['is_like']}>colfff<{else}>collike<{/if}>"><{$top_answer['likes']}></span></a>
                                            </div>
                                            <div class="reply-content">
                                                <div class="reply-info">
                                                    <div class="replier-bar">
                                                        <a class="mr5" href="javascript:void(0);"><{$top_answer['nickname']}></a>
                                                        <a class="replier-level" href="javascript:;" target="_blank" rel="nofollow"></a>
                                                        <{if $top_answer['is_answer']}>
                                                        <span class='adopted fr'>最佳答案</span>
                                                        <{else}>
                                                            <!--<{if $wenda['is_self'] && !$wenda['answer_id']}>-->
                                                            <!--<span class='adopt fr best-answer-btn'>采纳为答案</span>-->
                                                            <!--<{/if}>-->
                                                        <{/if}>
                                                        <div class="clear"></div>
                                                    </div>
                                                </div>
                                                <div class="reply-detail"><{$top_answer['content']}></div>
                                                <!--分享、20条评论-->
                                                <div class="share-report show-report">
                                                    <div class="q-share fl">
                                                        <a href="javascript:void(0);" class="comment-share share"><b class="icon-com icon-ask-share"></b>分享</a>
                                                        <div class="share-pop share">
                                                            <a class="sina icon-tab icon-share-sina" title="分享到新浪微博" data-key='wb' data-title='#弹溜溜无忧专栏#《<{$wenda["title"]}>》发现一个超精彩评论来自：<{$top_answer["nickname"]}>' data-content='#共<{$wenda["answernum"]}>人回复#' data-ref='<{$top_answer["share_url"]}>'></a>
                                                            <a class="qzone icon-tab icon-share-qzone" title="分享到QQ空间" data-key='qq' data-title='#弹溜溜无忧专栏#《<{$wenda["title"]}>》发现一个超精彩评论来自：<{$top_answer["nickname"]}>' data-content='#共<{$wenda["answernum"]}>人回复#' data-ref='<{$top_answer["share_url"]}>'></a>
                                                            <a class="sweixin icon-tab icon-share-wechat" title="分享到微信" data-key='wx' data-wx-qrcode="/trcode.html?text=<{$top_answer['share_url']|urlencode}>&size=150&level=H"></a>
                                                        </div>
                                                    </div>
                                                    <a href="javascript:;" class="q-invite mr5 _add_commit comment-wrap-btn"><b class="icon-com icon-comment"></b><span class="_ad_com"><{if $top_answer['commentnum']}><{$top_answer['commentnum']}>条回复<{else}>添加回复<{/if}></span></a>
                                                    <span class="release-time mr5">发布于 <{$top_answer['create_time']}></span>
                                                    <{if $top_answer['is_self']}>
                                                    <a href="javascript:void(0);" class="perfect-answer mr5 _add_commit answer-wrap-btn">完善回复</a>
                                                    <{else}>
                                                    <a style='display: none;' class='_report' data-rel="<{0|host_url}><{$top_answer['answer_url']}>">举报</a>
                                                    <{/if}>
                                                    
                                                </div>
                                                    <div class="commit-wrap _uncommit comment-wrap-box" <{if !$top_answer['commentnum']}>style="display:none;"<{/if}>>
                                                        <b class="arrow"><i></i></b>
                                                        <ul class="commit-list _commit_list reply-list-box">
                                                           <{foreach from=$top_answer['reply'] item=val}>
                                                           <li id="answer-reply-<{$val['answer_reply_id']}>" data-rid="<{$val['answer_reply_id']}>" data-auid="<{$val['user_id']}>">
                                                                <div class="commit-user"><a href="<{$val['space_url1']}>" target="_blank"><img src="<{$val['head_img']}>"/></a></div>
                                                                <dl>
                                                                    <dt class="replier-bar">
                                                                        <a href="<{$val['space_url1']}>" target="_blank"><{$val['nickname1']}></a>
                                                                        <a href="javascript:void(0);" class="replier-level" target="_blank"></a>：
                                                                        <{if $val['reply_id']}>
                                                                        <a target="_blank" href="<{$val['space_url2']}>">@<{$val['nickname2']}></a>
                                                                        <{/if}>
                                                                        <{$val['content']}>
                                                                    </dt>
                                                                    <dd>
                                                                        <div class="c-info show-report">
                                                                            <span class="c-time fl col999"><{$val['create_time']}></span>
                                                                            <a class="c-reply fr exposure-reply-item-r" data-rid="<{$val['answer_reply_id']}>" data-rname="@<{$val['nickname1']}>">回复</a>
                                                                            <a style="display: none;" class="c-reply _report fr" data-rel="<{0|host_url}><{$val['reply_url']}>">举报</a>
                                                                            <div class="clear"></div>
                                                                        </div>
                                                                    </dd>
                                                                </dl>
                                                            </li>
                                                            <{/foreach}>
                                                            <script>
                                                                var is_page =<{$top_answer['is_page']}>, is_reply_goto=<{$top_answer['is_reply_goto']}>,is_answer_goto=<{$top_answer['is_answer_goto']}>;
                                                                $(function(){
                                                                    if(is_page){//是否加载分页
                                                                        load_page_exposure_reply_item(<{$top_answer['current_page']}>,<{$top_answer['answer_id']}>);
                                                                    }
                                                                    setTimeout(function(){
                                                                        if(is_reply_goto){
                                                                            goto("answer-reply-"+<{$top_answer['target_id']}>);
                                                                        }else if(is_answer_goto){
                                                                            goto("answer-"+<{$top_answer['target_id']}>);
                                                                        }
                                                                    },300);
                                                                });
                                                                
                                                            </script>
                                                        </ul>
                                                        
                                                        <{if !$top_answer['is_page']}>
                                                            <{if $top_answer['reply_count'] > 2}>
                                                             <div class="commit-more">
                                                                 <a class="acommit-more exposure_answer-relay-more">查看更多&gt;&gt;</a>
                                                             </div>
                                                             <{/if}>
                                                        <{/if}>
                                                        <div class="reply-page " id="page_reply_pagination_<{$top_answer['answer_id']}>">
                                                        </div>
                                                        <!--添加评论-->
                                                        <div class="commit-add">
                                                            <div class="commit-word">
                                                                <textarea class="reply-woerd" placeholder=""></textarea>
                                                            </div>
                                                            <p class="word-count mt15">0&nbsp;字</p>
                                                            <input class="btn-commit mt10 exposure_answer-relay-btn" value="回复" type="button" data-rid="" data-unvilad="提交中">
                                                            <div class="clear"></div>
                                                        </div>
                                                    </div>
                                                    <{if $top_answer['is_self']}>
                                                    <div class="commit-wrap perfect answer-wrap-box" style="display:none;">
                                                        <b class="pf-arrow"><i></i></b>
                                                        <div class="pf-content">
                                                            <div class="pf-operate">
                                                                <a href="javascript:void(0);" class="up-picture-btn"><b class="icon-com icon-adphoto"></b>添加图片</a>
                                                            </div>
                                                            <div class="enter-content tc">
                                                                <div style="display: none;" class="tl perfect-txt editor-placeholder"></div>
                                                                <textarea style="display: none;" name="editor" id="wenda_answer" placeholder=""><{$top_answer['content']}></textarea>
                                                                <div style="display: inline-block;" class="tl perfect-enter wenda-answer-editor" contenteditable="true"><{$top_answer['content']}></div>
                                                            </div>
                                                            <div class="perfect-sure">
                                                                <input class="btn-commit exposure-answer-commit" value="提交回复" type="submit" data-unvilad="提交中..." data-aid="<{$top_answer['answer_id']}>" data-type="0"/>
                                                                <input type="button" class="pf-cancel mr10 btn-commit answer-wrap-btn" value="取消" />
                                                                <span class="col999 error ml30 answer-count">0&nbsp;字</span>
                                                                <div class="clear"></div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <{/if}>
                                            </div>
                                    </li>
                                </ul>
                                    <{/if}>
					<ul class="reply-list answer-list-box">
                                            <script>
                                                $(function(){setTimeout(function(){load_page_exposure_answer()},100);});
                                            </script>
					</ul>
					<div class="more-pages mt25">
                                            <div class="page-pagination fr ml20 mr5" id="answer_pagination_box"></div>
                                            <div class="page-count fr">共0页/0条</div>
					</div>
                                        <{if !$wenda['is_self'] && !$wenda['is_answer']}>
					<!--添加回答-->
					<div id="huida" class="add-answer editor-answer-box">
						<div class="aa-user">
                                                    <a href="javascript:void(0);"><img src="<{$bbs_user_info['head_img']}>" onerror="this.onerror=null;this.src='http://static.tan66.com/upfiles/head.png';"></a>
						</div>						
						<div class="add-tit">添加评论</div>
						<div class="aa-content">
							<div class="aa-operate">
								<a href="javascript:void(0);" class="up-picture-btn"><b class="icon-com icon-adphoto"></b>添加图片</a>
							</div>
							<div class="enter-input">
								<div style="display: block;" class="enter-txt editor-placeholder"></div>
								<textarea style="display: none;" name="editor" id="wenda_answer" placeholder=""></textarea>
								<div style="display: none;" class="add-editor wenda-answer-editor" contenteditable="true"></div>
							</div>
						</div>
						<div class="submin-as">
                                                        <span class="fl answer-count error">0&nbsp;字</span>
							<input class="btn-commit exposure-answer-commit" value="提交评论" type="submit" data-unvilad="提交中..." data-aid="<{$top_answer['answer_id']}>" data-type="1"/>
						</div>
					</div>
                                        <{/if}>
				</div>
			</div>
		</div>
		<div class="side-area fr">
			<{include file="public/exposure-right.html"}>
		</div>
		<div class="clear"></div>
	</div>
<{include file="public/footer.html"}>